import { game } from "../../../../script/game/control/game";
import { eduType, schoolType } from "../../../../script/game/gameType";
import { ListViewAdapter } from "../../../../script/util/ListView/ListViewAdapter";
import { ccs } from "../../../../script/util/services";
import { WinBase } from "../../../../script/wins/WinBase";

const {ccclass, property} = cc._decorator;

@ccclass
export default class NewClass extends WinBase {
    @property(ListViewAdapter)
    list: ListViewAdapter = null;
    
    @property(cc.Node)
    tips: cc.Node = null;

    type: string = null;
    
    start () {
        ccs.gf.extendNodeName(this.nodes, this.node.parent);
        this.updateItems();
        
    }
    updateItems() {
       let list = ccs.dataMgr.getHospital();
       this.list.updateItems(list);
    }
    
}
